package cn.gogoyc.user.mapper;

import cn.gogoyc.user.domain.User;
import cn.gogoyc.org.basic.mapper.BaseMapper;

/**
 * 用户Mapper接口
 * @author L1vezZ
 * @since 2023 -02-07
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 电话注册,判断是否注册过
     * @param phone the phone
     * @return the user
     */
    User loadByPhone(String phone);

    /**
     * 邮箱注册,判断是否注册过
     * @param email the email
     * @return the user
     */
    User loadByEmail(String email);

    User loadByLogininfoId(Long id);
}
